const puppeteer = require('puppeteer');

(async () => {
    const browser = await puppeteer.launch({
        executablePath: 'C:\\Users\\Administrator\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe',
        headless: false
    });
    const page = await browser.newPage();
    await page.goto('http://www.cnedu.cn/examination/');

    const result = await page.evaluate(() => {
        let item = document.getElementsByClassName('.ztjs');
        console.log(item);
        // if (item.length> 0) {
        //     item.map(item => {
        //         console.log(item);
        //     })
        // }
        return true;
    });

    // browser.close();
})();
